Getting an [null] response from SQL query using json_agg

join shbcf.ru